﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QH.JobBack.Model
{
    public class PositionInfo
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PositionInfo()
        {
            this.Collectpost = new HashSet<CollectPost>();
            this.Position_ResumeInfo = new HashSet<Position_ResumeInfo>();
        }
        [System.ComponentModel.DataAnnotations.Key]
        public int PostId { get; set; }
        public int CompId { get; set; }
        public int PostNameId { get; set; }
        public string Department { get; set; }
        public Nullable<short> WorkNature { get; set; }
        public decimal MinSalary { get; set; }
        public decimal MaxSalary { get; set; }
        public int CityId { get; set; }
        public string WorkExp { get; set; }
        public Nullable<short> Education { get; set; }
        public string Tempt { get; set; }
        public string PostRemark { get; set; }
        public string WorkAddress { get; set; }
        public Nullable<bool> Statu { get; set; }
        public string Email { get; set; }

        public DateTime PublishTime { get; set; }
        public virtual Cityinfo Cityinfo { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CollectPost> Collectpost { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Position_ResumeInfo> Position_ResumeInfo { get; set; }
        public virtual Company Company { get; set; }
        public virtual PostName Postname { get; set; }

    }
}
